﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using SomeRandomGame.Graphics;
using SomeRandomGame.Interfaces;
using SomeRandomGame.Utility;

namespace SomeRandomGame.LevelTypes
{
    public class SideScrollingLevel :ILevel
    {
        private readonly Background _background;

        public SideScrollingLevel( Background background )
        {
            _background = background;
        }

        public Vector2 Position
        {
            get { return new Vector2( 0, 0 ); }
            set
            {
                // Nothing to do
            }
        }

        public long TimeLimit { get { return 2000; } }

        public void Initialize( IGameManager gameManager )
        {
            _background.Initialize( gameManager );
        }

        public void Update( IGameManager gameManager )
        {
            _background.Update( gameManager );
        }

        public void Draw( SpriteBatch spriteBatch, IGameManager gameManager, GameTime gameTime )
        {
            _background.Draw( spriteBatch, gameManager, gameTime );
        }

        public void UnloadContent()
        {
        }
    }
}
